package com.rzdata.poct.system.domain.business.bo;

import com.rzdata.poct.common.core.domain.BaseEntity;
import com.rzdata.poct.common.core.validate.AddGroup;
import com.rzdata.poct.common.core.validate.EditGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 【请填写功能名称】业务对象 poct_test_records
 *
 * @author ruoyi
 * @date 2021-09-09
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("【请填写功能名称】业务对象")
public class PoctTestRecordsBo extends BaseEntity {

    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 用户姓名
     */
    @ApiModelProperty(value = "用户姓名")
    private String userName;

    /**
     * 用户部门
     */
    @ApiModelProperty(value = "用户部门")
    private Long deptId;

    /**
     * 考试科目
     */
    @ApiModelProperty(value = "考试科目", required = true)
    @NotBlank(message = "考试科目不能为空", groups = { AddGroup.class, EditGroup.class })
    private String subjects;

    /**
     * 考试名称
     */
    @ApiModelProperty(value = "考试名称")
    @NotBlank(message = "考试名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String testName;

    /**
     * 考试分数
     */
    @ApiModelProperty(value = "考试分数")
    private Long score;

    @ApiModelProperty("'数据库状态'")
    private int dbStatus;

    /**
     * 考试总分
     */
    @ApiModelProperty(value = "考试总分")
    private Long totalScore;

    /**
     * 合格分数
     */
    @ApiModelProperty(value = "合格分数")
    private Long qualifiedScore;

    /**
     * 考试时间
     */
    @ApiModelProperty(value = "考试时间")
    private Date testTime;

    /**
     * 培训内容描述
     */
    @ApiModelProperty(value = "培训内容描述")
    private String testResult;


    /**
     * 分页大小
     */
    @ApiModelProperty("分页大小")
    private Integer pageSize;

    /**
     * 当前页数
     */
    @ApiModelProperty("当前页数")
    private Integer pageNum;

    /**
     * 排序列
     */
    @ApiModelProperty("排序列")
    private String orderByColumn;

    /**
     * 排序的方向desc或者asc
     */
    @ApiModelProperty(value = "排序的方向", example = "asc,desc")
    private String isAsc;

}
